A. Object
B. Variable
C. Class
D. Method
Advertisement
Related Mcqs:
- Which is the predefined package ?
- A. Lang package B. util package C. io package D. All of above...
- What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
- A. 7 8 B. 8 7 C. 9 8 D. None...
- What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?
- A. 127 B. -127 C. 129 D. -129...
- The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
- A. Prints true B. Prints false C. Will not compile as boolean is not initialized D. Will not compile as boolean can never be static...
- What will the output of the following program? public class Test{ public static void main(String args[]){float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } } ?
- A. 0 B. 1 C. 2 D. 3...
- Which collection class associates values witch keys, and orders the keys according to their natural order ?
- A. java.util.LinkedList B. java.util.TreeMap C. java.util.SortedSet D. java.util.HashSet...
- Runnable is_______________?
- A. Interface B. Class C. Variable D. Method...
- In Java, the word true is ___________________?
- A. A Boolean literal B. A Java keyword C. Same as value 0 D. Same as value 1...
- All collection classes are available in _________________?
- A. java.util package B. java.io package C. java.lang package D. java.awt package...
- Smallest individual unit in java program is known as____________________?
- A. token B. string C. literal D. operator...
Advertisement